package com.luluteam.pushsdk;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.luluteam.pushlib.ContextClient;


public class MainActivity extends AppCompatActivity {

    private ImageView imageView;
    private Button btn_test;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        imageView = (ImageView) findViewById(R.id.iv);
        imageView.setImageResource(R.mipmap.ic_launcher);
        btn_test = (Button) findViewById(R.id.btn_test);
//        PushClient.getInstance(MainActivity.this).start(Constants.APP_KEY);

//        PushClient.getInstance(getApplicationContext()).start(Constants.APP_KEY);
        ContextClient.init(getApplication(), Constants.APP_KEY);
        btn_test.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ContextClient.rating("", -1, -1, -1);

            }
        });


    }


}
